//
//  ZHYCacheManager.h
//  ZHYProject
//
//  Created by lc4y on 2017/12/21.
//  Copyright © 2017年 dtl. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZHYCacheManager : NSObject

// 缓存对象
+ (ZHYCacheManager *)cacheMananger;

// 根据key将对象缓存到内存以及硬盘
- (void)saveData:(id)value forKey:(id)key;

// 从内存中获取数据
- (id)fetchDataForKey:(id)key;

// 删除缓存数据
- (void)removeDataForKey:(id)key;

// 清空缓存
- (BOOL)clearAllData;

@end
